//全站打开一个tab页调用
function showTab(tabid, title, url, fresh, external,reload) {

    var data = {
        tabId:tabid,// 参见leftmenu.jsp    rel="navTab_query" 不能重复
        title:title, //tab显示的title标题
        url:url, //要打开的url
        fresh:fresh,
        external:external,
        reloadFlag:reload
    };
    var option = $.extend(defaults, data);
    top.indexFrame.frames['mainframe'].show_tab(option);
}
var defaults = {
    tabId:'',
    title:'',
    url:'',
    fresh:false,
    external:true,
    reloadFlag:false
};
//获取当前打开的tabid
function getCurrentTabId(){
    var tabid=top.indexFrame.frames['mainframe'].navTab.dwzGetCurrentTabId();
//    console.log("tabid="+tabid);
    return tabid;
}
